package com.hd.listener;

import java.util.ArrayList;
import java.util.List;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

/**
 * 用户任务监听
 * 
 * @author hzhh123 2018年7月30日下午4:30:28
 */
@Component("userTaskListener2")
public class UserTaskListener2 implements TaskListener {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void notify(DelegateTask delegateTask) {
		List<String>users=new ArrayList<String>();
		users.add("564b88ba-8914-4f0a-8c41-204d0baefa72");
		users.add("61f4d850-8357-495d-8d57-939d26a47fc4");
		System.out.println("*************************");
		System.out.println(users.toString());
		delegateTask.addCandidateUsers(users);
	}

}
